package cn.guestbook.dao;

import java.util.List;

import org.springframework.dao.DataAccessException;

import cn.guestbook.model.Post;

/**
 * @author Wangzi
 * @email yhjhoo@gmail.com
 */

public interface PostDAO {

	/**
	 * @param post
	 * @throws DataAccessException
	 */
	public void add(Post post) throws DataAccessException;
	
	/**
	 * @param id
	 * @throws DataAccessException
	 */
	public void deleteById(Integer id) throws DataAccessException;
	
	/**
	 * @throws DataAccessException
	 */
	public List<Post> findAll() throws DataAccessException;
	
	
}